package com.zzxz.practicaltrainingsys.service;

import com.github.pagehelper.PageInfo;
import com.zzxz.practicaltrainingsys.entity.Dailynews;

import java.util.List;
import java.util.Map;

public interface DailynewsService {
    List<Dailynews> getDailynewsByStudentIdAndProjectId(Integer studentId, Integer projectId);

    Dailynews getDailynewsById(Integer dailynewsId);

    int insertDailynews(Dailynews dailynews);

    int updateDailynews(Dailynews dailynews);

    List<Map<String, Object>> getAllDailyReports();

    PageInfo<Map<String, Object>> getDailyNewsByPage(Integer pageNum, Integer pageSize);

    List<Map<String, Object>> getAllDailyNews();

    List<Map<String, Object>> getDailyNewsByProjectId(Integer projectId);
}